<template>

  <el-dialog title="群发对象条件" :visible.sync="$attrs.visableIf" @close="handleCloseDialog" :close-on-click-modal="false" :close-on-press-escape="false" append-to-body width="700px">
    <div class="content-big">
      <div class="item-li">
        <div class="item-left">满足条件组1</div>
        <div class="item-right">
          <div class="conditions">
            <div class="title">客户符合以下条件</div>
            <ul>
              <li>
                <div class="code">含任意企微标签：</div>
                <div class="content">
                  <div class="label-list">
                    <span>一般 </span>
                    <span>重要 </span>
                    <span>核心</span>
                  </div>
                </div>
              </li>
              <li>
                <div class="code">含任意智能标签：</div>
                <div class="content">
                  <div class="label-list">
                    <span>一般 </span>
                    <span>重要 </span>
                    <span>核心</span>
                  </div>
                </div>
              </li>
              <li>
                <div class="code">性别：</div>
                <div class="content">女</div>
              </li>
              <li>
                <div class="code">备注：</div>
                <div class="content">有备注 - 含所有关键词 -
                  <div class="label-list">
                    <span>一般 </span>
                    <span>重要 </span>
                    <span>核心</span>
                  </div>
                </div>
              </li>
            </ul>
          </div>
          <div class="conditions">
            <div class="title">客户排除以下条件</div>
            <ul>
              <li>
                <div class="code">含任意企微标签：</div>
                <div class="content">
                  <div class="label-list">
                    <span>一般 </span>
                    <span>重要 </span>
                    <span>核心</span>
                  </div>
                </div>
              </li>
              <li>
                <div class="code">含任意智能标签：</div>
                <div class="content">
                  <div class="label-list">
                    <span>一般 </span>
                    <span>重要 </span>
                    <span>核心</span>
                  </div>
                </div>
              </li>
              <li>
                <div class="code">性别：</div>
                <div class="content">女</div>
              </li>
              <li>
                <div class="code">备注：</div>
                <div class="content">有备注 - 含所有关键词 -
                  <div class="label-list">
                    <span>一般 </span>
                    <span>重要 </span>
                    <span>核心</span>
                  </div>
                </div>
              </li>
            </ul>
          </div>

        </div>
      </div>
    </div>
    <div class="footer-btn" slot="footer">
      <el-button @click="handleCloseDialog">取消</el-button>
    </div>
  </el-dialog>
</template>

<script>


export default {
  name: 'viewConditions',
  components: {},
  data() {
    return {}
  },
  created() {
  },
  mounted() {
  },
  watch: {},
  methods: {
    handleCloseDialog() {
      this.$emit('update:visableIf', false);
      this.$emit('handleQuery');
    },
  }
}
</script>

<style scoped lang="scss">
.content-big {
  .item-li {
    display: flex;

    .item-left {
      width: 140px;
    }

    .item-right {
      flex: 1;
      padding: 0px 0px 10px 0px;

      .title {
        height: 40px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #eee;
        padding: 0px 10px;
        color: rgba(0, 0, 0, .45);
      }

      ul {
        list-style: none;
        padding: 10px;

        li {
          padding-bottom: 5px;
          display: flex;
          color: rgba(0, 0, 0, .45);

          .code {
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            width: 120px;
          }

          .content {
            height: 30px;
            display: flex;
            align-items: center;
            flex: 1;
          }
        }
      }
    }
  }
}

.label-list {
  label {
    font-size: 14px;
    line-height: 1.5715;
    word-wrap: break-word;
    font-weight: 400;
  }

  span {
    margin: 4px 4px 4px 0;
    font-size: 12px;
    height: 25px;
    line-height: 25px;
    white-space: nowrap;
    background: #f0f0f0;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    padding: 0px 7px;
    display: inline-block;

  }
}

.conditions {
  margin-bottom: 10px;
  border: 1px solid #eee;

}
</style>
